
let fs = require("fs");


let pldatas = require("./plsDatas.js")






let an = pldatas.filter(v => {
    let maxworkpoint = 0;
    v.work.forEach(w => {
        if(/(\d+)$/.test(w)){
            if(RegExp.$1 - 0 > maxworkpoint) {
                maxworkpoint = RegExp.$1 - 0;
            }
        }
    });
    v.maxworkpoint = maxworkpoint

    return v.prop.includes("暗")

});

an.sort((b, a) => a.maxworkpoint - b.maxworkpoint)




fs.writeFileSync("planalysisret.js", JSON.stringify(an))
